package com.example.mapper;

import com.example.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    @Select("select * from t_user where user_id=#{userId}")
    @ResultMap("UserResult")
    User selectByUserId(Integer userId);

    int batchInsert(List<User> userList);

    int batchUpdateByUserId(List<User> userList);

    int batchUpdate(List<User> userList);
}
